package main
{
	import api.dataStruct.GameApiInfo;
	import api.event.CallFunName;
	
	import base.GlobalData;
	
	import com.game.display.AutoGCSprite;
	import com.game.display.DisManage;
	
	import mc.InitAPIBg;
	
	public class InitAPI_PVP extends AutoGCSprite
	{
		public function InitAPI_PVP()
		{
			DisManage.delAllDis();
			DisManage.addDis(new InitAPIBg());
			GlobalData.apiCore.currClass=(this);
			GlobalData.apiCore.callAPIFun(CallFunName.A_SET_INIT_PVP);
		}
		public function setMyInfo(userInfo:GameApiInfo):void{
			GlobalData.myInfo=userInfo;
		}
		public function setUserInfo(userInfo:GameApiInfo):void{
			GlobalData.userInfo=userInfo;
		}
		public function startGame(data:Boolean):void{
			trace("startGame",data);
			DisManage.delAllDis();
			GlobalData.apiCore.isRobot=GlobalData.isRobot=data;
			DisManage.addDis(new Game());
		}
		public function debug(data:*):void{
			
		}
	}
}